{% extends "panel/panel_base.html" %}
{% load truncate_filters %}
{% block panel_title%}Messages:{% endblock %}
{% block panel_content %}
	<div id="message_control">
		<ul>
			<li><a href="http://fblaconnection.com/panel/{{user.username}}/messages/send/">Send a Message</a></li>
			<li><a href="http://fblaconnection.com/panel/{{user.username}}/messages/recieved/">Recieved Messages</a></li>
			<li><a href="http://fblaconnection.com/panel/{{user.username}}/messages/sent/">Sent Messages</a></li>
		</ul>
	</div>
	{% if message %}
	<div id="message_box_full">
		<div id="message_content">
		<strong>Sender:</strong> <a href="http://fblaconnection.com/panel/{{message.sender.username}}/userp/">{{message.sender.username|capfirst}}</a> ({{message.sender.first_name}} {{message.sender.last_name}})<br />
		<strong>Subject:</strong> {{message.subject}}<br />
		<strong>Date Sent:</strong> {{message.date_sent|date}}<br />
		<strong>Message Content:</strong><br />
		
		{{message.content}}</div><br />
		{% if rec %}<br /><a href="http://fblaconnection.com/panel/{{user.username}}/messages/view/delete/{{message.id}}/"><div id="reg_button_div">Delete...</div></a>
		<a href="http://fblaconnection.com/panel/{{user.username}}/messages/send/?user={{message.sender.username}}&message_id={{message.id}}"><div id="reg_button_div">Reply...</div></a>
		{% endif %}
	</div>
	{% else %}
		Invalid Message ID.
	{% endif %}
{% endblock %}